home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(this.tile1 != null && this.tile2 != null)
- {
- if(_root[tile1]._alpha < 10)
- {
- _root.RemoveTile(tile1);
- _root.RemoveTile(tile2);
- this.tile1 = null;
- this.tile2 = null;
- }
- if(_root[tile1].course == "right")
- {
- _root[tile1]._x += 3;
- _root[tile1]._y -= 1;
- _root[tile1]._alpha -= 20;
- }
- else if(_root[tile1].course == "left")
- {
- _root[tile1]._x -= 3;
- _root[tile1]._y += 1;
- _root[tile1]._alpha -= 20;
- }
- if(_root[tile2].course == "right")
- {
- _root[tile2]._x += 3;
- _root[tile2]._y -= 1;
- _root[tile2]._alpha -= 20;
- }
- else if(_root[tile2].course == "left")
- {
- _root[tile2]._x -= 3;
- _root[tile2]._y += 1;
- _root[tile2]._alpha -= 20;
- }
- }
- }
-